import request from '@/utils/request'

// 查询车间工资列表
export function listMonthws(query) {
  return request({
    url: '/sl/monthws/list',
    method: 'get',
    params: query
  })
}

export function listMpay(query) {
  return request({
    url: '/sl/monthws/mpaylist',
    method: 'get',
    params: query
  })
}


export function getSingleMonthws(query) {
  return request({
    url: '/sl/monthws/singlelist',
    method: 'get',
    params: query
  })
}


// 查询车间工资列表
export function listMonthwsRange(query) {
  return request({
    url: '/sl/monthws/rangelist',
    method: 'get',
    params: query
  })
}

// 查询车间工资详细
export function getMonthws(wsmpayId) {
  return request({
    url: '/sl/monthws/' + wsmpayId,
    method: 'get'
  })
}

// 新增车间工资
export function addMonthws(data) {
  return request({
    url: '/sl/monthws',
    method: 'post',
    data: data
  })
}

// 修改车间工资
export function updateMonthws(data) {
  return request({
    url: '/sl/monthws',
    method: 'put',
    data: data
  })
}

// 删除车间工资
export function delMonthws(wsmpayId) {
  return request({
    url: '/sl/monthws/' + wsmpayId,
    method: 'delete'
  })
}
